package com.wy.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wy.model.base.BaseEntity;
import lombok.Data;

import java.util.Date;
import java.io.Serializable;
import java.util.List;

/**
 * (TbPermission)实体类
 *
 * @author makejava
 * @since 2023-02-12 16:28:42
 */
@Data
@TableName("tb_permission")
public class Permission extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableField("parent_id")
    private Integer parentId;

    @TableField("name")
    private String name;

    @TableField("type")
    private Integer type;

    @TableField("path")
    private String path;

    @TableField("component")
    private String component;

    @TableField("perms")
    private String perms;

    @TableField("icon")
    private String icon;

    @TableField("sort_value")
    private Integer sortValue;

    @TableField("status")
    private Integer status;

    // 下级列表
    @TableField(exist = false)
    private List<Permission> children;

    //是否选中
    @TableField(exist = false)
    private boolean isSelect;


}

